# Default config for sis (SIS Is Sway)
#
# Copy this to ~/.sway/sis.conf and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.

### Variables
# 
# Keys
# 	
	# Logo key for sis. Use $Alt for Alt or use $Super for Super or $mod (for use LogoKey from sway).
	# set $LogoKey $ModKey
	set $LogoKey $Alt
	
	# set $Audio $LogoKey+a
	# set $Mute Space
	set $Night $LogoKey+n

	set $Airplane 7
# 
# Links
# 
	# sis dirs:
	set $SIS_BIN ~/.local/sis-bin
	set $SIS_SH ~/.local/sis-sh

	# links to back
	set $night $SIS_SH/sis-night
	# set $background $SIS_SH/sis-ground

	# links to net
	set $net-wifi $SIS_SH/sis-wifi
	set $net-lan $SIS_SH/sis-lan
	set $net-usb $SIS_SH/sis-usb
	set $net $SIS_SH/sis-net

	# links to media
	set $audio-volume $SIS_SH/sis-volume
	set $audio-song $SIS_SH/sis-song
# 
# Media Keys
# 
    # # control volume on laptop
    # set $AudioVolumeNull $Audio+1
    # set $AudioVolumeMin $Audio+2
    # set $AudioVolumeMax $Audio+3
    # set $AudioVolumeFull $Audio+4
    # 
	# set $AudioVolumeUp $Audio+Up
	# set $AudioVolumeDown $Audio+Down
	# 
	# set $AudioVolumeKeyUp $Audio+$Up
	# set $AudioVolumeKeyDown $Audio+$Down
# 
	# set $AudioMute $Audio+Escape
# 
    # # song player keys
	# set $AudioNext $Audio+Right
	# set $AudioPrev $Audio+Left
	# set $AudioStop $Audio+Tab
	# set $AudioPlay $Audio+Space
# 
# Application
#
	include ~/badbro/conf/applications.conf

### Key bindings
# 
# Application:
# 
    # Start a terminal
    bindsym $LogoKey+Space exec $term

    # Start your launcher
    bindsym $ModKey+Menu exec $menu

    # Start your media player
    bindsym $ModKey+p exec $player

    # Start your Internet Browser
    bindsym $ModKey+i exec $browser_cg
    
    # Start your Internet Browser with temp wifi
    bindsym $AdminKey+i exec ~/bin/sis/shell-wifi $browser
    
    # Start your Editor
    bindsym $ModKey+f exec $editor_cg

### Sis keys:
#
# Linux container
#
	mode "sis" {
	
	    # Go to modes
	    bindsym $LogoKey+a mode "audio"
	    bindsym $LogoKey+n mode "night"
	    bindsym $LogoKey+w mode "wifi"
	    
	    # Return to default mode
	    bindsym Escape mode "default"
	}
	bindsym $LogoKey+Return mode "sis"
	# bindsym $LogoKey+Return mode "application" # for run apps
#
# NeT Wifi
# 
	mode "wifi" {
	    # control wifi on laptop
	    bindsym Up exec  $net-wifi on
	    bindsym Right exec  $net-wifi connect
	    bindsym Left exec  $net-wifi connect
	    bindsym Down exec  $net-wifi off

	    # Return to default mode
	    bindsym Escape mode "default"
	}
	# bindsym $Alt+F7 mode "wifi"
	bindsym $LogoKey+$Airplane mode "wifi"

    # quick keys for control wifi on laptop
    bindsym $ModKey+Insert exec  $net-wifi on
    bindsym $ModKey+Delete exec  $net-wifi off
#
# Night container
#
	mode "night" {
		# Dont recomended use for long uses ... Maybe need X or other ... Sway can to Crush
	    # control of night mode with your focus around
	    bindsym $Down exec  $night off
	    bindsym $Up exec  $night on
	    # Ditto, with arrow keys
	    bindsym Down exec  $night off
	    bindsym Up exec  exec  $night on

	    # Return to default mode
	    bindsym Escape mode "default"
	}
	bindsym $LogoKey+n mode "night"
#
# Audio container
#
	mode "audio-volume" {
	    # Control audio Volume with your focus around
	    bindsym $Down exec  $audio-volume -=
	    bindsym $Up exec  $audio-volume +=
	    # Ditto, with arrow keys
	    bindsym Down exec  $audio-volume -=
	    bindsym Up exec  $audio-volume +=
	    bindsym Space exec  $audio-volume mute

	    # replace audio volume to 0 or 30 or 70 or 100
	    bindsym $Super+$Down exec  $audio-volume set min
	    bindsym $Super+$Up exec  $audio-volume set max
	    bindsym $Super+$Left exec  $audio-volume set null
	    bindsym $Super+$Right exec  $audio-volume set full
	    # Ditto, with arrow keys
	    bindsym $Super+Down exec  $audio-volume set min
	    bindsym $Super+Up exec  $audio-volume set max
	    bindsym $Super+Left exec  $audio-volume set null
	    bindsym $Super+Right exec  $audio-volume set full

	    # Return to default mode
	    bindsym Escape mode "default"
	}
	bindsym $LogoKey+Tab mode "audio-volume"
#
# Song container
#
	mode "song" {
	    # control your song
	    bindsym $Left exec  $audio-song prev
	    bindsym $Right exec  $audio-song next
	    bindsym Left exec  $audio-song prev
	    bindsym Right exec  $audio-song next
	    bindsym Return exec  $audio-song play

	    # Return to default mode
	    bindsym Escape mode "default"
	}
	bindsym $LogoKey+Print mode "song"

# # Compile sis tools
	# exec ~/bin/.sis/sis-compile
# # Include result config
# include ~/.sway/result-compile


# include configs for special power 
include ~/.sis/laptop.conf



### Auto start:
	exec $cg_editor ~/badbro/conf/* ~/.config/waybar/* ~/.sway/*

